package com.ds.server;
import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

import com.badlogic.gdx.backends.jogl.JoglApplication;
import com.ds.client.screen.InitGame;

public class RMIServerMain { 
    public static void main(String args[]) { 
        try { 
            RMIServerFramwork rService = new RMIServerImpl(); 
            LocateRegistry.createRegistry(8888); 

            Naming.bind("rmi://localhost:8888/RService",rService); 

            System.out.println(">>>>>INFO:waiting for connection"); 
        } catch (RemoteException e) { 
            e.printStackTrace(); 
        } catch (AlreadyBoundException e) { 
            e.printStackTrace(); 
        } catch (MalformedURLException e) { 
            e.printStackTrace(); 
        } 
    } 
}